import request from "@/utils/request";

// 分页字典查询
export function listPageDictionarys(data) {
  return request({
    url: "/dictionary/pages",
    method: "get",
    params: data,
  });
}

// 新增字典
export function insertDictionary(data) {
  return request({
    url: "/dictionary",
    method: "post",
    data,
  });
}

// 编辑字典
export function updateDictionary(data) {
  return request({
    url: "/dictionary",
    method: "put",
    data,
  });
}

// 批量删除字典
export function deleteDictionarys(data) {
  return request({
    url: "/dictionary",
    method: "delete",
    params: data,
  });
}

// 删除字典
export function deleteDictionary(data) {
  return request({
    url: "/dictionary/" + data,
    method: "delete",
  });
}
